package cn.com.u.looks.magic;

import java.awt.Graphics;
import java.awt.Rectangle;

import javax.swing.AbstractButton;
import javax.swing.JComponent;
import javax.swing.plaf.ComponentUI;
import javax.swing.plaf.metal.MetalButtonUI;

public class MagicButtonUI extends MetalButtonUI {
	private final static MagicButtonUI INSTANCE = new MagicButtonUI();
	
	public static ComponentUI createUI(JComponent c) {
		return INSTANCE;
	}
	
	@Override
	public void installDefaults(AbstractButton b) {
		// TODO Auto-generated method stub
		super.installDefaults(b);
	}
	
	@Override
	public void update(Graphics g, JComponent c) {
		// TODO Auto-generated method stub
		super.update(g, c);
	}
	
	@Override
	protected void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect) {
	}
}
